<route lang="json5" type="page">
{
	style: {
		navigationStyle: 'custom',
		navigationBarTitleText: '图书详情',
	},
}
</route>

<template>
	<view class="page-bookrack">
		<fly-navbar backgroundColor="#F6F6F6" leftText="图书详情" fixed />
		<view
			class="w-full flex flex-col box-border pb-[168rpx]"
			style="overflow-y: scroll"
			:style="{ height: contentHeight + 'rpx' }"
		>
			<view class="px-4 pt-4 box-border flex justify-between items-center mb-4 last:mb-0">
				<image
					class="w-[243rpx] h-[286rpx] rounded-[30rpx]"
					:src="baseImg + '/img-shangcixuedao.png'"
				></image>
				<view class="flex-1 pl-2 py-2 h-[250rpx] box-border flex flex-col justify-between">
					<view class="w-full flex flex-col">
						<text class="text-[33rpx] font-bold text-[#303030]">中国民间故事</text>
						<text class="text-[22rpx] text-[#303030] mt-1">陈红烟 编著</text>
						<text class="text-[22rpx] text-[#919191] mt-[25rpx] line-clamp-2"
							>出版社：湖北少年儿童出版社</text
						>
						<text class="text-[22rpx] text-[#919191] mt-1 line-clamp-2">阅读对象：三年级</text>
					</view>
					<view class="w-full flex justify-left items-center mt-[25rpx]">
						<view class="group">
							<image index="21" :src="baseImg + '/moren.png'" class="mask" />
							<image index="21" :src="baseImg + '/moren.png'" class="overlayer" />
							<image index="21" :src="baseImg + '/moren.png'" class="large-icon" />
							<view class="address-wrapper" style="width: 220rpx; padding-left: 20rpx; margin: 0">
								<text index="48" class="address-1">785人读过</text>
							</view>
						</view>
					</view>
				</view>
			</view>

			<view class="px-4">
				<view class="w-full flex justify-between items-center mb-3">
					<view class="text-[#303030] text-[33rpx] font-bold px-3">整本书阅读</view>
				</view>
				<view class="bookDetails_listBox">
					<text class="bookDetails_listBox_left">衔接统编教材</text>
					<image class="bookDetails_listBox_right" :src="baseImg + '/book_xq_sp.png'" />
				</view>
				<view class="bookDetails_listBox">
					<text class="bookDetails_listBox_left">开启阅读之旅</text>
					<image class="bookDetails_listBox_right" :src="baseImg + '/book_xq_yy.png'" />
				</view>
				<view class="bookDetails_listBox">
					<text class="bookDetails_listBox_left">名师导读课程</text>
					<image class="bookDetails_listBox_right" :src="baseImg + '/book_xq_wen.png'" />
				</view>
			</view>

			<view class="px-4">
				<view class="w-full flex justify-between items-center mb-3">
					<view class="text-[#303030] text-[33rpx] font-bold px-3">阅中测练</view>
				</view>
				<view class="bookDetails_testBox">
					<view class="bookDetails_testBox_text1">第一站 寻觅英雄的足迹</view>
					<view class="bookDetails_testBox_text2"
						>阅读篇目: 《木兰从军》《穆桂英挂帅》《武松打虎》</view
					>
					<view class="bookDetails_testBox_btnBox">
						<view class="bookDetails_testBox_btnBox_left">
							<image class="w-[25rpx] h-[25rpx]" :src="baseImg + '/book_xq_tw.png'" />
							<text>学生测练情况</text>
						</view>
						<view class="bookDetails_testBox_btnBox_right">
							<image class="w-[20rpx] h-[25rpx]" :src="baseImg + '/book_xq_shu.png'" />
							<text>查看试题</text>
						</view>
					</view>
				</view>
				<view class="bookDetails_testBox">
					<view class="bookDetails_testBox_text1">第一站 寻觅英雄的足迹</view>
					<view class="bookDetails_testBox_text2"
						>阅读篇目: 《木兰从军》《穆桂英挂帅》《武松打虎》</view
					>
					<view class="bookDetails_testBox_btnBox">
						<view class="bookDetails_testBox_btnBox_left">
							<image class="w-[25rpx] h-[25rpx]" :src="baseImg + '/book_xq_tw.png'" />
							<text>学生测练情况</text>
						</view>
						<view class="bookDetails_testBox_btnBox_right">
							<image class="w-[20rpx] h-[25rpx]" :src="baseImg + '/book_xq_shu.png'" />
							<text>查看试题</text>
						</view>
					</view>
				</view>
				<view class="bookDetails_testBox">
					<view class="bookDetails_testBox_text1">第一站 寻觅英雄的足迹</view>
					<view class="bookDetails_testBox_text2"
						>阅读篇目: 《木兰从军》《穆桂英挂帅》《武松打虎》</view
					>
					<view class="bookDetails_testBox_btnBox">
						<view class="bookDetails_testBox_btnBox_left">
							<image class="w-[25rpx] h-[25rpx]" :src="baseImg + '/book_xq_tw.png'" />
							<text>学生测练情况</text>
						</view>
						<view class="bookDetails_testBox_btnBox_right">
							<image class="w-[20rpx] h-[25rpx]" :src="baseImg + '/book_xq_shu.png'" />
							<text>查看试题</text>
						</view>
					</view>
				</view>
				<view class="bookDetails_testBox">
					<view class="bookDetails_testBox_text1">第一站 寻觅英雄的足迹</view>
					<view class="bookDetails_testBox_text2"
						>阅读篇目: 《木兰从军》《穆桂英挂帅》《武松打虎》</view
					>
					<view class="bookDetails_testBox_btnBox">
						<view class="bookDetails_testBox_btnBox_left">
							<image class="w-[25rpx] h-[25rpx]" :src="baseImg + '/book_xq_tw.png'" />
							<text>学生测练情况</text>
						</view>
						<view class="bookDetails_testBox_btnBox_right">
							<image class="w-[20rpx] h-[25rpx]" :src="baseImg + '/book_xq_shu.png'" />
							<text>查看试题</text>
						</view>
					</view>
				</view>
			</view>
		</view>

		<view index="2" class="container-5">
			<view index="1" src="" class="title-wrapper">
				<image
					class="w-[40rpx] h-[40rpx] mt-[20rpx] mr-[10rpx]"
					:src="baseImg + '/book_xq_add.png'"
				/>
				<text index="0" class="title-9">加入书架</text>
			</view>
		</view>
	</view>
</template>

<script lang="ts" setup>
import { systemInfo } from '@/utils/getSystemInfo';

const baseImg = ref(import.meta.env.VITE_STATIC_IMAGE);

const { contentHeight } = systemInfo();
const tabKey = ref('underway'); // over

const changeTab = (key: string) => {
	tabKey.value = key;
};
</script>

<style lang="scss">
page {
	background: #f6f6f6;
}
</style>
<style lang="scss" scoped>
.page-bookrack {
	width: 100%;
	height: 100vh;
}

.group {
	position: relative;
	display: flex;
	flex-direction: row;
	align-self: center;
	justify-content: flex-start;
	width: 160.4rpx;
	height: 49.3rpx;
	margin-left: 55.5rpx;
}

.view {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-self: flex-start;
	justify-content: flex-start;
	width: 160.4rpx;
	padding: 11.1rpx 8.3rpx 9.7rpx;
	background-color: rgb(43 165 223 / 100%);
	border: 2.7rpx solid rgb(240 240 240 / 100%);
	border-radius: 0 25px 25px 0;
}

.logo {
	align-self: center;
	width: 92.3rpx;
	height: 18.75rpx;
	margin-right: 1.3rpx;
}

.mask {
	position: absolute;
	top: 0;
	left: -56.25rpx;
	box-sizing: border-box;
	width: 60.4rpx;
	height: 49.3rpx;
	background-color: rgb(255 255 255 / 100%);
	border: 2.7rpx solid rgb(240 240 240 / 100%);
	border-radius: 24.6rpx;
}

.overlayer {
	position: absolute;
	top: 0;
	left: -38rpx;
	box-sizing: border-box;
	width: 49.3rpx;
	height: 49.3rpx;
	background-color: rgb(255 255 255 / 100%);
	border: 2.7rpx solid rgb(240 240 240 / 100%);
	border-radius: 24.6rpx;
}

.large-icon {
	position: absolute;
	top: 0;
	left: -22.9rpx;
	width: 49.3rpx;
	height: 49.3rpx;
}

.address-wrapper {
	display: flex;
	flex-direction: row;
	align-self: center;
	justify-content: center;
	width: 140.9rpx;
	padding: 13.5rpx 8.3rpx 12.1rpx;
	margin-left: 27.7rpx;
	background-color: rgb(43 165 223 / 100%);
	border-radius: 23.6rpx;
}

.address-1 {
	align-self: flex-start;
	overflow: hidden;
	font-size: 23.6rpx;
	font-style: normal;
	line-height: 23.6rpx;
	color: rgb(255 255 255 / 100%);
	text-align: left;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.container-5 {
	position: fixed;
	bottom: 0;
	left: 50%;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	width: 750rpx;
	height: 166rpx;
	background-color: rgb(255 255 255 / 97%);
	box-shadow: 0 -4.1rpx 11.1rpx rgb(129 129 129 / 10%);
	transform: translate(-50%);

	.title-wrapper {
		display: flex;
		flex-direction: row;
		align-self: center;
		justify-content: center;
		width: 444rpx;
		height: 83rpx;
		margin-top: 40rpx;
		background-color: #2ba5e0;
		border-radius: 83rpx;
	}

	.title-9 {
		align-self: flex-start;
		overflow: hidden;
		font-size: 33rpx;
		font-style: normal;
		line-height: 83rpx;
		color: rgb(255 255 255 / 100%);
		text-align: left;
		text-decoration: none;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
}

.bookDetails_listBox {
	width: 681rpx;
	height: 104rpx;
	margin-bottom: 30rpx;
	overflow: hidden;
	background: #fff;
	border-radius: 25rpx;
	box-shadow:
		0rpx 0rpx 3rpx 0rpx rgb(0 0 0 / 3%),
		0rpx 5rpx 21rpx 0rpx rgb(0 0 0 / 7%);
}

.bookDetails_listBox_left {
	float: left;
	width: calc(100% - 36rpx - 50rpx - 33rpx);
	height: 104rpx;
	margin-left: 33rpx;
	font-size: 26rpx;
	line-height: 104rpx;
	color: #303030;
}

.bookDetails_listBox_right {
	float: left;
	width: 36rpx;
	height: 36rpx;
	margin-top: 34rpx;
}

.bookDetails_testBox {
	float: left;
	width: calc(681rpx - 66rpx);
	padding: 39rpx 33rpx 27rpx;
	margin-bottom: 30rpx;
	background: #fff;
	border-radius: 31rpx;
	box-shadow:
		0rpx 0rpx 3rpx 0rpx rgb(0 0 0 / 3%),
		0rpx 5rpx 21rpx 0rpx rgb(0 0 0 / 7%);
}

.bookDetails_testBox_text1 {
	width: 100%;
	font-size: 26rpx;
	line-height: 54rpx;
	color: #303030;
}

.bookDetails_testBox_text2 {
	width: 100%;
	margin-top: 0.24rem;
	font-size: 22rpx;
	line-height: 54rpx;
	color: #5e5e5e;
}

.bookDetails_testBox_btnBox {
	width: 100%;
	margin-top: 24rpx;
}

.bookDetails_testBox_btnBox_left {
	float: left;
	height: 60rpx;
	padding: 0 30rpx;
	background-color: #eee;
	border-radius: 60rpx;
}

.bookDetails_testBox_btnBox_left image {
	float: left;
	margin-top: 18rpx;
}

.bookDetails_testBox_btnBox_left text {
	float: left;
	margin-left: 10rpx;
	font-size: 24rpx;
	line-height: 60rpx;
	color: #5e5e5e;
}

.bookDetails_testBox_btnBox_right {
	float: left;
	height: 60rpx;
	padding: 0 30rpx;
	margin-left: 20rpx;
	background-color: #2ba5e0;
	border-radius: 60rpx;
}

.bookDetails_testBox_btnBox_right image {
	float: left;
	margin-top: 18rpx;
}

.bookDetails_testBox_btnBox_right text {
	float: left;
	margin-left: 10rpx;
	font-size: 24rpx;
	line-height: 60rpx;
	color: #fff;
}
</style>
